package wjw.service;

import com.wjw.model.Damage_type_ftable;
import com.wjw.service.DamageTypeFtableService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class DamageTypeFService {

    private ApplicationContext ioc=new ClassPathXmlApplicationContext("springmvc.xml");

    @Test
    public void test01(){
        DamageTypeFtableService bean = ioc.getBean(DamageTypeFtableService.class);
        List<Damage_type_ftable> byPage = bean.findByPage(1, 2);
        System.out.println(byPage);
    }
}
